package com.central.scheduler.spi.common;
import com.central.scheduler.spi.params.base.PluginParams;

import java.util.List;

/**
 * @author Tindy
 * @date 2021/10/26
 * @describe
 */
public interface UiChannelFactory {

    /**
     * plugin name
     * Must be UNIQUE .
     * This alert plugin name eg: email , message ...
     * Name can often be displayed on the page ui eg : email , message , MR , spark , hive ...
     *
     * @return this alert plugin name
     */
    String getName();

    /**
     * Returns the configurable parameters that this plugin needs to display on the web ui
     *
     * @return this alert plugin params
     */
    List<PluginParams> getParams();

}

